const question = {
  namespaced:true,
  state: {
    interviewQuestion: '',
  },
  mutations: {
    SET_QUESTION(state, payload) {
      state.interviewQuestion = payload;
    },
  },
  actions: {
    updateQuestion({ commit }, question) {
      commit('SET_QUESTION', question);
      console.log('Vuex 问题已更新:', question);
    },
  },
  getters: {
    getInterviewQuestion: (state) => state.interviewQuestion,
  },
};

export default question;
